package com.aistar.order.service.impl;

import com.aistar.order.entity.OrderBill;
import com.aistar.order.mapper.OrderBillMapper;
import com.aistar.order.service.IOrderBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by Administrator on 2019/6/25 0025.
 */
@Service
@Transactional
public class OrderBillImpl implements IOrderBillService {
    @Autowired
    private OrderBillMapper orderBillMapper;

    @Override
    public List<OrderBill> findAll(String orderId) {
        return orderBillMapper.findAll(orderId);
    }

    @Override
    public OrderBill findById(String Id) {
        return orderBillMapper.findById(Id);
    }

    @Override
    public void save(OrderBill orderBill) {
        orderBillMapper.save(orderBill);
    }

    @Override
    public void delete(String id) {
        orderBillMapper.delete(id);
    }

    @Override
    public void update(OrderBill orderBill) {
        orderBillMapper.update(orderBill);
    }
}
